package yyee.llee.mmee.pl190.host668;

import android.util.Log;
import java.util.ArrayList;
import java.util.List;

public class GlobalConfig {

    private static final String TAG = "GlobalConfig";

    // 体外开关
    public static boolean outPage = true;

    public static boolean waterfall = true;

    // 壁纸开关
    public static boolean wallpaper = true;

    public static boolean download = true;

    public static boolean keepalive = true;

    public static boolean news = true;

    public static boolean dialog = true;

    public static boolean premissState = false;

    public static boolean video = true;

    public static boolean isGrowMore = true;

    public static boolean overlay = false;

    public static boolean mi_android_id = true;

    public static boolean huawei_ad = true;

    // 保活权限入口开关
    public static boolean keepalive_icon = true;

    // home键频控开关
    public static boolean adHomeTime_enable = true;

    // home键频控时间
    public static String adHomeTime_intvalTime = "40";

    // 默认5秒
    public static long adAutoCloseTime = 5;

    // 插件是否检查完成，如果需要升级，下载成功并记录到数据库后，置为true，中间异常也置为true
    public static boolean isFinishCheckPlugin = false;

    // 小说开关
    public static boolean reader = true;

    public static long turn_one_time = 5;

    public static long turn_two_time = 10;

    public static long turn_three_time = 20;

    public static List<Integer> timerMinute = new ArrayList<>();

    public static List<Integer> timerCount = new ArrayList<>();

    public static List<Integer> timerCountBack = new ArrayList<>();

    public static String dy_share_command = "";

    public static String dy_deeplink = "";

    // 检查本地上报打点日志开关
    public static boolean logRequest = false;

    public static boolean logFull = false;

    public static boolean logRequestFailed = false;

    public static boolean logDouyin = false;

    public static boolean logClick = false;

    public static boolean logClose = false;

    public static boolean logDialog = false;

    public static class PolicyBuilder {

        private boolean outPage = false;

        public PolicyBuilder() {
        }

        public PolicyBuilder setOutPage(boolean outPage) {
            int passwordfdare32432qresafdsagda32 = 123456;
            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
            int keydasopuerqnfdazcveq = 4;
            int lowupoeqfda7073fdal = 0;
            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
            int middledaiueprnvznfewqip = 0;
            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                int adfajpouqregjbdipug = 1;
            } else {
                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                        // 比关键字大则关键字在左区域
                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                        // 比关键字小则关键字在右区域
                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                    } else {
                    }
                }
            }
            this.outPage = outPage;
            return this;
        }

        public void config() {
            int passwordfdare32432qresafdsagda32 = 123456;
            int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
            int keydasopuerqnfdazcveq = 4;
            int lowupoeqfda7073fdal = 0;
            int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
            int middledaiueprnvznfewqip = 0;
            if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
                int adfajpouqregjbdipug = 1;
            } else {
                while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                    middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                    if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                        // 比关键字大则关键字在左区域
                        highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                    } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                        // 比关键字小则关键字在右区域
                        lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                    } else {
                    }
                }
            }
            GlobalConfig.outPage = outPage;
        }
    }

    public static String CHANNEL = "1";

    public static void setCHANNEL(String CHANNEL) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] numbersfdajipureqvna3280 = new int[] { 2, 3 };
        for (int ifdjaiopurq832074 = 0; ifdjaiopurq832074 < numbersfdajipureqvna3280.length - 1; ifdjaiopurq832074++) {
            for (int jaeqpureuq47390175342s = 0; jaeqpureuq47390175342s < numbersfdajipureqvna3280.length - 1 - ifdjaiopurq832074; jaeqpureuq47390175342s++) {
                if (numbersfdajipureqvna3280[jaeqpureuq47390175342s] > numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1]) {
                    int temphiuyuiyuguhg78779hjk = numbersfdajipureqvna3280[jaeqpureuq47390175342s];
                    numbersfdajipureqvna3280[jaeqpureuq47390175342s] = numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1];
                    numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1] = temphiuyuiyuguhg78779hjk;
                }
            }
        }
        GlobalConfig.CHANNEL = CHANNEL;
        Log.d(TAG, "setCHANNEL: " + CHANNEL);
    }
}
